package com.yulinlin.admin.modules.sys.domain;

import com.yulinlin.admin.core.domain.SuperEntity;

import com.yulinlin.jdbc.model.anno.JoinField;
import com.yulinlin.jdbc.model.anno.JoinTable;
import com.yulinlin.jdbc.model.anno.JoinWhere;
import com.yulinlin.jdbc.serialize.ListString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("系统菜单")
@JoinTable("sys_menu")
public class SysMenuEntity extends SuperEntity<SysMenuEntity>  {









        @NotEmpty(message = "必填")
        @ApiModelProperty("名称")
        @JoinWhere
        @JoinField
        private String menuName;





        @NotEmpty(message = "必填")
        @ApiModelProperty("父编号")
        @JoinWhere
        @JoinField
        private String parentId;





        @NotEmpty(message = "必填")
        @ApiModelProperty("父路径")
        @JoinWhere
        @JoinField
        private String parentPath;





        @NotEmpty(message = "必填")
        @ApiModelProperty("排序值")
        @JoinWhere
        @JoinField
        private Integer sortValue;





        @NotEmpty(message = "必填")
        @ApiModelProperty("路径")
        @JoinWhere
        @JoinField
        private String path;





        @NotEmpty(message = "必填")
        @ApiModelProperty("组件地址")
        @JoinWhere
        @JoinField
        private String component;





        @NotEmpty(message = "必填")
        @ApiModelProperty("外链")
        @JoinWhere
        @JoinField
        private Boolean frame;





        @NotEmpty(message = "必填")
        @ApiModelProperty("类型")
        @JoinWhere
        @JoinField
        private String menuType;





        @NotEmpty(message = "必填")
        @ApiModelProperty("可视")
        @JoinWhere
        @JoinField
        private Boolean visible;





        @NotEmpty(message = "必填")
        @ApiModelProperty("可用")
        @JoinWhere
        @JoinField
        private Boolean status;





        @NotEmpty(message = "必填")
        @ApiModelProperty("权限编码")
        @JoinWhere
        @JoinField
        private String code;





        @NotEmpty(message = "必填")
        @ApiModelProperty("图标")
        @JoinWhere
        @JoinField
        private String icon;











        @NotEmpty(message = "必填")
        @ApiModelProperty("修改时间")
        @JoinWhere
        @JoinField
        private Date uptTime;





        @NotEmpty(message = "必填")
        @ApiModelProperty("是否隐藏")
        @JoinWhere
        @JoinField
        private Boolean hidden;





        @NotEmpty(message = "必填")
        @ApiModelProperty("")
        @JoinWhere
        @JoinField
        private String name;






}
